.class public abstract Lnbisdk/ct;
.super Ljava/lang/Object;

# interfaces
.implements Lcom/nbi/location/LocationListener;
.implements Lnbisdk/or;


# instance fields
.field protected el:Lcom/nbi/location/LocationListener;

.field private em:Ljava/util/Vector;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/Vector",
            "<",
            "Lcom/nbi/location/LocationListener;",
            ">;"
        }
    .end annotation
.end field


# direct methods
.method public constructor <init>()V
    .locals 1

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    const/4 v0, 0x0

    iput-object v0, p0, Lnbisdk/ct;->el:Lcom/nbi/location/LocationListener;

    new-instance v0, Ljava/util/Vector;

    invoke-direct {v0}, Ljava/util/Vector;-><init>()V

    iput-object v0, p0, Lnbisdk/ct;->em:Ljava/util/Vector;

    return-void
.end method


# virtual methods
.method public abstract c(Lcom/nbi/common/NBIContext;Lcom/nbi/location/LocationListener;)V
.end method

.method public locationUpdated(Lcom/nbi/location/Location;)V
    .locals 2

    iget-object v0, p0, Lnbisdk/ct;->el:Lcom/nbi/location/LocationListener;

    if-eqz v0, :cond_0

    iget-object v0, p0, Lnbisdk/ct;->el:Lcom/nbi/location/LocationListener;

    invoke-interface {v0, p1}, Lcom/nbi/location/LocationListener;->locationUpdated(Lcom/nbi/location/Location;)V

    :cond_0
    :goto_0
    iget-object v0, p0, Lnbisdk/ct;->em:Ljava/util/Vector;

    invoke-virtual {v0}, Ljava/util/Vector;->size()I

    move-result v0

    if-lez v0, :cond_1

    iget-object v0, p0, Lnbisdk/ct;->em:Ljava/util/Vector;

    invoke-virtual {v0}, Ljava/util/Vector;->firstElement()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/nbi/location/LocationListener;

    if-eqz v0, :cond_1

    invoke-interface {v0, p1}, Lcom/nbi/location/LocationListener;->locationUpdated(Lcom/nbi/location/Location;)V

    iget-object v1, p0, Lnbisdk/ct;->em:Ljava/util/Vector;

    invoke-virtual {v1, v0}, Ljava/util/Vector;->remove(Ljava/lang/Object;)Z

    goto :goto_0

    :cond_1
    return-void
.end method

.method public onLocationError(I)V
    .locals 1

    iget-object v0, p0, Lnbisdk/ct;->el:Lcom/nbi/location/LocationListener;

    if-eqz v0, :cond_0

    iget-object v0, p0, Lnbisdk/ct;->el:Lcom/nbi/location/LocationListener;

    invoke-interface {v0, p1}, Lcom/nbi/location/LocationListener;->onLocationError(I)V

    :cond_0
    return-void
.end method

.method public providerStateChanged(I)V
    .locals 1

    iget-object v0, p0, Lnbisdk/ct;->el:Lcom/nbi/location/LocationListener;

    if-eqz v0, :cond_0

    iget-object v0, p0, Lnbisdk/ct;->el:Lcom/nbi/location/LocationListener;

    invoke-interface {v0, p1}, Lcom/nbi/location/LocationListener;->providerStateChanged(I)V

    :cond_0
    return-void
.end method
